## Generating random linear combinations

from PyM import *

# def rd_linear_combination(G,K=''):
#     if K=='': K = K_(G)
#     k = len(G)
#     u = vector(rd(K,k))
#     return u*G

# Examples
a = [2,3,5,7,11]

G = vandermonde(a,3)
K = Zn(5)

x = rd_linear_combination(G,K)
show(x)

C = PRS(Zn(17),10)

G = G_(C)
x = rd_linear_combination(G)
show(x)

show(x*transpose(H_(C)))



